﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSEngine
{
    public class GameOverArgs: EventArgs
    {
        private bool draw;
        private Player winner;

        private GameOverArgs()
        {
            draw = true;
            winner = null;
        }

        public GameOverArgs(Player theWinner)
        {
            winner = theWinner;
        }

        public bool Draw
        {
            get { return draw; }
        }

        public Player Winner
        {
            get { return winner; }
        }

        public static GameOverArgs CreateDraw()
        {
            return new GameOverArgs();
        }
    }
}
